Skip to content

Fix Meta import risk PR labeling permissions - #60313

Merged
rubennorte merged 1 commit into
react:mainfrom
cortinico:codex/fix-meta-import-label-permission
Nov 26, 2026
Merged

rubennorte merged 1 commit into
react:mainfrom
cortinico:codex/fix-meta-import-label-permission

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:

The Meta import risk classifier succeeded for PR #60312 and returned high, but the label job failed with HTTP 403 when calling the PR labels endpoint (run 45808220981, job 139869718185). Its GITHUB_TOKEN had issues:write but only pull-requests:read. Give just the label job pull-requests:write, as the existing Analyze Pull Request workflow does for PR labeling. The model-facing classify job remains read-only.

The destination label has already been created by the workflow. The fix needs a new pull_request_target event once merged to confirm that addLabels succeeds; re-running the old run may still use its old workflow revision.

Changelog:

[INTERNAL] [FIXED] - Permit Meta import risk triage to label pull requests.

Test Plan:

  • npx --yes prettier@3.10.0 --check .github/workflows/meta-import-risk.yml — passed.
  • ruby -e "require 'yaml'; YAML.load_file('.github/workflows/meta-import-risk.yml'); puts 'YAML valid'" — passed.
  • git diff --check — passed.
  • Cannot exercise GitHub installation token permissions locally; validate with a new pull_request_target run after merging.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2026
@cortinico
cortinico marked this pull request as ready for review November 26, 2026 11:22
@rubennorte
rubennorte merged commit f3fc45b into react:main Nov 26, 2026
99 of 102 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants